#ifndef _WT_UPLOAD_H
#define _WT_UPLOAD_H

typedef struct WtUploadT
{
  ApacheUpload *item;
  Tcl_Channel channel;
  int channelCreated;
} WtUpload;

void WtUploadSettingsUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
int WtUploadSettingsCmd(ClientData clientData, Tcl_Interp *interp,
                        int objc, Tcl_Obj *const objv[]);

Tcl_Obj *WtNewUploadObj(ApacheUpload *upload);
WtUpload *WtToUpload(Tcl_Obj *obj);

Tcl_Obj *WtUploadCmdGetUpload(Tcl_Interp *interp, Tcl_Obj *obj);
void WtUploadUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
int WtUploadCmd(ClientData clientData, Tcl_Interp *interp, int objc,
                Tcl_Obj *const objv[]);

void WtInitUploadCommands(Tcl_Interp *interp);

extern struct Tcl_ObjType WtUploadType;

#endif /* !_WT_UPLOAD_H */
